package com.power.services.department;

import java.util.List;
import java.util.Map;

import com.power.model.department.TiDepartment;
import com.power.services.GenericService;
import com.power.util.PageUtil;

public interface DepartmentService extends GenericService<TiDepartment, Integer> {

    public Map<String, Object> findAll(String name, int start, int limit, Integer hid);
    
    public void saveOrUpdate(TiDepartment department);
    
    public void delete(String ids);
    
    public String getProName(Integer code);
    public String getProId(Integer code);
    public String setDistrictName(Integer code);

	public void deleteHos(String ids);
	public Map<String, Object> findComboxAll(String name, int start, int limit, Integer hid);
	
	/**
	 * 根据医院查找其所有科室
	 * @param hid
	 * @return
	 */
	public List<TiDepartment> findByHospitalId(Integer hid);

	public PageUtil searchDept(String keyword, int pageNo, int limit);
	
	public List<TiDepartment> findBySearchKeyWord(String keyword);
}
